package edu.gatech.stolen.tea.login;

import edu.gatech.stolen.tea.R;
import edu.gatech.stolen.tea.R.id;
import edu.gatech.stolen.tea.R.layout;
import edu.gatech.stolen.tea.display.item.ItemDisplayListActivity;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;

public class SuccessfullLogin extends Activity {
	
	public static final String TAG = "Successfull Login Page";
	
	private Button toAppButton;
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
    	
    	Log.v(TAG, "Activity State: onCreate()");
        super.onCreate(savedInstanceState);
        setContentView(R.layout.succesfullogin);
    	
        toAppButton = (Button) findViewById(R.id.bClickHereButton_succesfullogin);
        
        toAppButton.setOnClickListener(new View.OnClickListener() {

		
			public void onClick(View v) {

				toAppButtonClicked();

			}
		});
    }
    
    /**
     * clicked the toApp button
     */
    private void toAppButtonClicked() {
    	
    	Log.v(TAG, "toApp Button Clicked");
    	goToItemPage();
    	
    }
    /**
     * Go To display item list
     */
    protected void goToItemPage() {
		Intent i = new Intent(this, ItemDisplayListActivity.class);
		startActivity(i);
	}
    
}